package com.kelvin.paopao.adapter;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kelvin.kelvinlib.imageloader.GlideUtil;
import com.kelvin.paopao.R;
import com.kelvin.paopao.api.responseBean.NearByPersonModel;
import com.kelvin.paopao.api.responseBean.VipPriceModel;

/**
 * Created by MCK on 2017/5/8.
 */

public class VipPriceAdapter extends BaseQuickAdapter<VipPriceModel, BaseViewHolder> {

    private Context context;

    public VipPriceAdapter(Context context) {
        super(R.layout.recyclerview_vip_price_item);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, VipPriceModel item) {
        helper.setText(R.id.tv_price_title, item.getTitle());
        helper.setText(R.id.tv_price_month, item.getMonth() + "个月");
        helper.setText(R.id.tv_price, item.getMoneys() + "");
    }
}
